#-*- coding: utf8 -*-
from tutor.scripts import *
from tutor.plugins.sympy import *

with display_block('Entradas'):
    numb = oneof(-1, 1) * oneof(1, 2)
    func = (x ** 3 - y ** 3) / (x ** 2 - y ** 2)
    point = (0, 0)
    answer = None
    vars = tuple(var(x) for (x, c) in zip('xyzw', point))

# Salva resposta
g0, g1, g2, g3, g4, g5, g6, g7 = [0] * 8
if answer is None:
    g7 = 1
else:
    locals()['g%s' % answer] = 1
    assert (answer in range(7))
    assert 1 in [ g0, g1, g2, g3, g4, g5, g6, g7 ]

# Mostra resultados
with display_block('Resultados'):
    answers = list(enumerate([ g0, g1, g2, g3, g4, g5, g6, g7 ]))

